import { spawn } from "node:child_process";

const ls = spawn("eza", ["-lh", "./"]);

ls.stdout.on("data", (data) => {
  console.log(`stdout: \n${data}`);
});

ls.stderr.on("data", (data) => {
  console.error(`stderr: \n${data}`);
});

ls.on("close", (code) => {
  console.log(`child process exited with code ${code}`);
});
